"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    /**
     * Add altering commands here.
     *
     * Example:
     * await queryInterface.createTable('users', { id: Sequelize.INTEGER });
     */
    queryInterface.renameColumn("dict_item", "itemText", "item_text");
    queryInterface.renameColumn("dict_item", "itemValue", "item_value");
    queryInterface.renameColumn("dict_item", "itemColor", "item_color");
    queryInterface.renameColumn("dict_item", "dictId", "dict_id");
  },

  async down(queryInterface, Sequelize) {
    /**
     * Add reverting commands here.
     *
     * Example:
     * await queryInterface.dropTable('users');
     */
  },
};
